package com.chiry.shop.order.controller;

import com.chiry.common.vo.Result;
import com.chiry.common.vo.param.OrderParam;
import com.chiry.shop.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author fyx
 * @version 1.0
 * @date 2021/12/9 20:36
 */
@RestController
@RequestMapping("order")
public class OrderController {
    @Autowired
    OrderService orderService;
    @PostMapping("createOrder")
    public Result<String> createOrder(@RequestBody OrderParam orderParam){
        return orderService.createOrder(orderParam);
    }
}
